Sex with a concussion

A few days ago I got a mild concussion. Would it be okay to have sex or would that not be a great idea?