A Murphy Bed can be installed to a weight bearing wall if the bed is lightweight enough to fold away perfectly into the wall. If the bed is much bigger in scale, there would need to be much more supportive hardware for the frame alone. This could potentially make the bed unsafe especially if installed to a weight-bearing wall.