If you are a female backpacker, you might feel safer staying in an all-female dorm room, which is commonly available. Generally, though, hostels are very safe places. They often have CCTV in shared areas and everyone should give their ID at the reception.