Is methane gas a hydrocarbon?

Yes, methane gas is a hydrocarbon.