This works great unless the onshore enemy has anti-ship missiles and drones.[2] Unlike fleet carriers, which can stand off from an enemy shore, amphibious assault ships have to operate in sight of shore, maybe a few kilometers, because their job is to launch boats. That's within small drone range.
[1] https://en.wikipedia.org/wiki/Wasp-class_amphibious_assault_...
[2] https://www.usmcu.edu/Outreach/Marine-Corps-University-Press...