Can you have sex with a concussion?

Yesterday I had fallen on my head and I’m not quite sure if I have one but I do feel really dizzy and off. Is it harmful to have sex/masturbate with a concussion ?