Yes, once you have connected two Bluetooth speakers to your iPhone, you can play audio from any third-party app that supports audio output through Bluetooth. The feature is not limited to the built-in iOS apps.