Depends. Some hostels have strict age limits. Most are a bit wary of older looking travelers but I've definitely run into over 40-ish people in them. OP is going to be fine. Not to mention, most hostels have a rooms you can rent and in a lot of places, like Asia, you'll end up with your private room for cheap anyway in many places (Indonesia, Laos, Cambodia, in my experience).