After Marriage - Staying in Canada

Can my wife stay in canada after we have got married or she has to exit before visa expiry?

Probably need to provide more context. What visa are you on, what visa is she on?