If you're talking about something like CH4 in terms of being the molecular formula of the compound, then no. CH4, C2H8, C3H12 are all different (C2H8 and C3H12 don't exist though as a side-note), but if CH4 is treated as an empirical formula then yes it's the same as C2H8 and C3H12.