Thanks for the query.
As you got periods after the intercourse, the possibility of pregnancy
The cause of your symptoms could be pelvic inflammatory disease
or urinary tract infection
You once consult gynecologist, get examined and go for urine microscopy.
Possibly by this the cause for your problem can be identified and treated.
If the menstrual flow was scanty and if there is any doubt regarding pregnancy, wait till your expected date of periods. And if you miss the periods, go for pregnancy test.