Can I build a public app using node.js, Flutter, Heroku, and Firebase?

Hello:)

Can I build and publish a pubilc App with a nodejs-backend which handles all the APIs and host it on heroku and build the frontend with flutter and host it on firebase?

Thanks

Hanno