can a rifle be good for both elk and deer
Yep, it's called a 30-06 loaded with a 165 or 180 grain bullet. Not too much of a meat masher for deer sized game like some of the magnums can be. And loaded with a good 165 or 180 grain bullet will kill elk and anything else on the North American continent. (and most things on the planet)