Did I miss what time your ship is scheduled to arrive? And which port?
If the ship arrives in San Pedro at 9AM, you probably won't make an 11AM flight at LGB. I say probably because if you clear CBP in San Diego, then, yes I think you have a chance.
If it arrives in Long Beach or San Pedro at 7AM, I'd think you make an 11AM flight easily.
Same questions; which ship, which port, what time is ship's scheduled arrival?
The difference between you and the OP is that they should clear CBP in San Diego the day before they get to LA. Both ports use facial recognition, so it goes pretty quick, but a lot depends on the ship arrival time.