You can install Greenify to do exactly this. It helped me kill some pernicious apps that I needed once in a while but that would run all the time, killing my battery (I'm looking at you, Mi Fit).
The only annoying and inexplicable thing is that some apps run their own background process for push notifications, rather than using GCM, so pushes stop coming in if you kill those.