They absolutely would be profitable, it’s just that those costs would then be passed on to the consumer. People would see energy costs skyrocket to make up the difference.
The oil companies still have a product most of the world needs and people will (and have) killed to get it. We’d rebel against a government they tried
In order to get passed oil we need to move to alternatives like EVs.