Yes it is. It takes the same amount of energy to disassociate the hydrogen and oxygen, minus the efficiency of your setup, that you get back when you burn it.
Energy cannot be created or destroyed, only converted. Since internal combustion engines are only about 30% efficient, that's a massive loss.