340 or 408?

So if I go 408 from a 360 , would my top end work if the right cam was selected? (edelbrock heads and Victor intake) I would port them as well.
Same heads and intake, appropriate cam for intended use, yeah, it'll rev just like your 340, with more power. (My opinion only).