Machine will not drain

Washing machine has stopped draining. Will will agitate and spin, but will not drain. We were out of town unexpectedly for over a week during very, very cold weather. When we got home, the washer had been dripping and filled up with water. I tried to turn it on to drain out that water and it wouldn’t do it. I bailed out all the water and ran it through a wash cycle on the small load setting with no clothes in it, it filled and ran through the entire cycle fine except for it will not drain. Should I look at replacing the pump?