Of course, if you want or need an invoice for your stay, you only have to ask for it physically at the hostel or by email.