Well it really depends but it can be OK.
Either you do a “standard” 3 tiers app with front-end + back-end + DB. So for example this could be React + Node.js (Next.js & MDB Node.js driver) + MongoDB.
Or you can design an app using a Realm SDK + an app in the Atlas App Service (was called Realm) + MongoDB.
The App in the Atlas App Service will act as a backend service (auth, rules, functions, triggers, …) but you can have a direct access to MDB from the SDK. It’s up to you then if you want to call mdb command directly from the front or encapsulate this in a back-end function (for security or just to factorise the code so it’s easier to update the front-end for example - it can be tricky if it’s a mobile app).
Cheers,
Maxime.