Yes, you can take a call while connected to bluetooth speakers, but the speakers must support hands-free calling and have a microphone.
If an iPhone is connected to a bluetooth speaker that doesn't have these features, upon receiving a call, the audio will be switched to the iPhone speaker. This is a limitation of iOS, not FYI.