Can I move out of my Texas apartment but keep paying rent through end of lease?

Two months left on lease. I have already given notice that I will not be renewing my lease. I plan to move home for the summer due to mold and electricity problems. Is it okay for me to move out but keep paying rent through the lease term?
10 answers 10