Yes. Tub mounted glass is a standard configuration, and it arrives in three shapes: a bypass slider riding on the tub deck, a hinged door hung off a short return panel, or a single fixed panel that works as a splash screen with no door at all. What the tub itself can carry decides which one fits.
A bypass slider puts two panels on a track so nothing swings into the room, which is why it has been the default over tubs for decades. The cost of that is a walk in opening roughly half the tub width, plus a bottom track that collects water. A hinged tub door uses a short fixed panel at the wall with a swinging door beside it, gives a much cleaner look in heavier glass, and needs solid anchoring and room to swing over the rim.
The third option is one fixed panel and nothing else. It suits a tub that is used mostly as a shower, it is the easiest piece of glass in the bathroom to keep clean, and it leaves the far end of the tub open for bathing a child or cleaning the tub itself.
The rim is the first thing measured. A track or a screen shoe needs a flat landing, so a wide flat rim is friendly and a narrow rolled rim on an older tub is not. The deck also has to be checked end to end with a level, because a tub that settled or was set slightly out of level will throw a glass panel out of true, and the correction happens with shims and sealant rather than by tilting the glass.
The wall matters just as much for anything hinged. Hinge hardware wants studs or blocking behind the tile, and heavy tempered panels are unforgiving of a soft anchor. Acrylic tubs also flex more underfoot than cast iron, which is a factor for what gets set on the rim.
Water leaves a tub at the ends, not through the middle, so a screen has to stand between the shower head and the open end rather than simply be tall. A hinged door swinging outward has to clear the rim, then clear the vanity and the bathroom door behind it. New Jersey follows model building codes, which call for tempered safety glass anywhere it is glazed around a tub or shower, and your local building department is the last word on any particular install.
For ordinary showering, yes, provided the panel stands between the head and the open end of the tub. Length does more work than height here. If someone in the house showers facing the opening, a hinged wing on the end of the screen closes that gap without adding a full door.
Usually. Cast iron gives a rigid, flat surface, which is the friendly case for a track or a screen shoe. The variable is the rolled edge on older tubs, since a curved rim leaves less flat surface to set and seal against. That is checked with a level in the bathroom, not from a photograph.
Tub openings vary far more than catalog photos suggest, and the rim is where the decision gets made. The in home measure is free on residential work, and it settles slider against hinged door against fixed screen while you are standing in the room looking at the tub.