I have this happen sometimes. I have a history of migraines though and just about anything will set them off. The orgasm headaches come in phases. Sometimes it'll be every time and then it just stops.
I'd suggest talking to your doctor if they continue. Headaches can be a sign of bigger issues sometimes. If you don't get them regularly and are getting them just after sex, it's worth a visit.