My bench has an squat rack, and low and high pulleys. So i can do squats, bench and do cable exercises too.
A lot of benches have adjustable parts so you can use it like a squat rack.
The best thing you could get if you dont want to join a gym is a power rack, but they're expensive.
POWER RACKS