No, not necessarily.

On my network Java requires ports 80, 7000 and 8000 to be open. I am not sure about applets like jPilot though.