The short answer is yes. The court can order that one spouse be removed from the marital residence while the other spouse can be granted exclusive possession of the marital residence. In practicality, the process and end result is not nearly that simple.