FlutterFlow and Buildship and MariaDB database

We have a database remotely stored in a server. Are we able to create a FlutterFlow/Buildship app that queries this database? Or it is impossible because the DB on the server is remote and cannot be publicly accessed?