It's optional. You dont have to use his ability.
That's a confusing answer. Of course you don't have to use Barbarossa's ability - you can also grow population and build military as usual. But if you do use it, you have to do the whole combo action at once. You can't, say, spend a military action to grow population in a discount. You have to build a unit with it at the same time.