when guys are angry or upset

Rhi • 30, Digital Designer, Whippet Mum 🐶
When my boyfriend gets annoyed by something or is feeling down he sort of shuts away. Like if im upset a cuddle or some attention can make me feel a little better. But for him he just gives me the cold shoulder until hes Over it.
Like lately ill go to kiss him goodnight and he will sort of let me but groan and not hug me back. He will just sort of avoid me and get annoyed at any physical contact I try to have. 
But then if hes okay and we watch something he will lie on me or cuddle and in bed he will spoon me etc.
Just wondering whether this is a typical way for a guy to act when hes upset or angry? Like does anyone else get this with their guys?