Yes, according to the legislation, the court cannot make a decision to evict you from the apartment, if you no longer have housing and the person who evicts you does not have the opportunity to provide another.
Ask in Telegram