Return in town

I wanted to know if it’s possible for my character to use the return scroll only if he’s in town.