Probably not. Firebird 3 uses ARC4 encryption, which is generally
considered a weak/broken cipher these days. But more importantly, doing
this would mean exposing your Firebird server publicly on the internet
(that is port 3050 open to the world), which means anyone could try to
connect. There have been issues in the past where malformed connect
packets could crash the server. Making your Firebird server publicly
accessible could make you vulnerable to denial-of-service attacks if
similar bugs still exist, to distributed denial-of-service attacks just
by getting flooded by connection requests, and even intentional
brute-force login attempts.
In general (not specifically for Firebird), database servers should not
be publicly accessible. So, if you need to connect to it from a remote
network, you should use a VPN solution (or another type of private
networking solution).
Or consider a different setup: don't expose your Firebird server at all,
but use something like a REST API to mediate between your application
and the database.
Mark