Is it safe to take a beta blocker such as bisoprolol fumarate just before exercising?

Yes. If the prescription is to lower blood pressure and prevent heart attacks or strokes, you want to take your med as prescribed to prevent excessive rises in BP especially during exercise. But don't use heart rate to determine your % max conditioning level.