If you can, in fact, I use it on some projects.
For example, I have an app that is an administrative app that I create content for another app, and at the same time both are connected, so I can manage and see content with one that the other generates.
To link two projects to the same Firebase account, you can do the following within Android Studio
Both in the first and second projects, you can connect it following these steps
From Android Studio
1.- Go to tools - Firebase
2.- Select any of the services and click the connect button
3.- Select the project where you want to connect the app you are working on
This window can skip you once if you fail to press connect, or you get another window in which you select an existing project and you continue to
I did not find the image where this window was coming from, but if you do not see the image above, it will probably come out earlier
That's where you choose to choose an existing project and link that project with a ready-made Firebase project. As you can see, in the option of choose an existing project, it tells us next to the number of linked apps that this project has.
Once connected, everything should be fine
From Firebase
1.- Configure project
2.- Add SHA-1 of your new app (pressing add fingerprint)
In this way we link more than one app to the same database
Remember, the most important thing is that you add the SHA-1 of the new project to the Firebase configuration. If you do it from Android Studio it is only put, if you do it from the web you have to add the SHA-1 of the new project.
Update
As you can see in this photo, I have 2 different projects connected to the same Firebase database, with different package names