Yes, you can take a call while connected to Bluetooth speakers, but the speakers must support hands-free calling and include a built-in microphone.
If your iPhone is connected to a Bluetooth speaker without these features, the call audio will automatically switch to the iPhone’s speaker when a call comes in. This behavior is a limitation of iOS, not FYI.