Not quite. They are all sp3 hybridized. But it does have to do with electron pairs and the size of the shells.
Compare: H-S-H and H-O-H. Both have two lone pairs of electrons, but there is one difference between the elements S and O, that causes H-S-H to be smaller.
Compare: H-O-H and H-N-H. In something like NH3 and H2, which one has more lone pairs of electrons. How might this affect the bond angles experienced?
Also, I'm pretty sure the question did not mean to imply H-N-H and H-C-H existed, but in something like NH3 and CH4.