In general, most of the LED bulb does not need ballast, some brands like Philips more carry Plug and Play version which requires a ballast, but these bulbs will have problems in a short period of time because these are not compatible will all different kind of ballasts. also using an existing ballast is not as efficient

The main questions are that ”is it okay to bypass the ballast in the existing fixture?” or ”is that against electrical code to bypass the ballast in the fixture?” NO, it’s absolutely fine to bypass the fixture and its so easy to do

In many LED fixtures, the ballast is covered by a casing so you have to remove the tubes and unscrew the casing to get the ballast. Remove the case, lenses or lamps that prevent you from accessing the ballast and set them aside.

This will help you expose enough of the black and white wires from the center so you can reach the socket wires.

Rewire and remove the ballast and Connect the input wires to the output wires.