If your license entitled you to fly the flight with a non pilot person as a passenger, and you were flying the 'plane, you can log it as PiC. If you were entitled to fly solo, you can log as PiC. If you required the participation of an instructor, and they were aboard, it's PuT.