This is great advice exactly what we do and never had a problem.
Its only about a two minute walk to the ferry/ hydrofoil terminal from where the cruise ship docks.
We always travel over to Capri under out own steam and usually the ship tours are also on the very same ferry/ hydrofoil.
When you dock in Capri and exit the port turn right go up the hill for about 50 metres and there’s a kiosk selling bus transportation tickets for a few euros to Anacapri or there’s plenty of Cuban style open top taxis that will transport you up there.