Yes... the reason you cannot do it is because pages with an HTML extension have no server side language capabilities.
It is in fact the PHP extension that tells the web server to process the PHP language, so it would be impossible to add PHP language scripting to a page that cannot be processed by the PHP engine.
Cheers,
Brian