For the hockey/skaters out there, my feet are killing me!

I recently purchased brand new hockey skates to get back into skating and after about 20min my feet hurt, once I untie the skates, the pain goes away - do I just have to get use to the skates and if I skate more the pain goes away ?