Sex on or off my period

so i was on my period the day before yesterday and i thought i was still on it while my boyfriend and i had sex. but i wasn't because no blood or anything was there. what does this mean? i should've been on it for the next 3 days. is this okay?