If the girl is on her periods can the sega be prayed?

Yes It is because for nikah (either permanent or temporary) there is no such restriction has been mentioned.
But after the nikah husband can’t do sexual inter course with his wife unless she become clean from her menses.