Considering a spouse can command a demon to leave their significant other by referring to their exclusive rights to their husband/wife; kinda yeah.
If you ever have to use this, do note that if whatever sin let the spirit in isn't settled, the entity will return and be more difficult to deal with.