Sure it’s legal, why would it not be?
Lots of aircraft out there that are owned by a private owner under an LLC for instance then leased to a charter company.
The aircraft will require a conformity inspection and approved by the FAA to be added to the fleet.