Yes it is very dangerous to drive with bad brakes.
When your brakes are bad it creates a dangerous situation because it can take longer for your car to stop when you step on the brakes.
Also your brakes may completely fail on you and then you would not be able to stop the vehicle at all unless you use your emergency brake.
If your brakes do fail then slowly apply your emergency or parking brake to slow the vehicle down and stop the vehicle.
I once had a burst brake line that caused me to lose my brakes and so I had to use the emergency brake to stop the vehicle.
I then slowly drove the vehicle home but used my emergency brakes to stop the vehicle.
If your brakes are bad they need replaced for safety.
If your brake pads are worn or your brake shoes are worn or you have bad brake rotors or brake drums or other bad brake parts then you need to replace them and fix the issue.
Brakes are very important to your vehicle and your safety and others safety around you.
Don't cheap out on brakes.