There is no problem in that as long as it does not amount to neglecting her rights or disrespecting her
This is difficult, if you must move out to get married then you should simultaneously make sure to take care of her and fulfill her needs the best you can