Confusion with the gain concept of an amplifier
When talking about simple amplifiers the "gain" parameter is usually the voltage gain, not the power gain.

And, yes, the power gain is very dependent on the load impedance. Without a load no power will be delivered. If the output is shorted, no power will be delivered.