If a couple had sex and after sex they come to know that her period has started, what does islam say about it?

If it was unwillingly and unknowingly happened immediate has to stop and do isteghfar