Depends on if it’s a stud wall but we now have 2 pocket doors, one in a slim shower room on a fairly narrow corridor, and one leading to our utility room, where a normal door would either obscure the fridge or obstruct the utility room.
Don’t expect them to be as solid as a normal door though.
How about a pocket door for the entrance?