If you are typed in the airplane, you can log PIC time any time you are the sole manipulator of the controls per CFR 61. In other words, if it's your leg, you can log it even if you are assigned as SIC. If you are the assigned PIC you can log PIC time regardless of whether you're flying or not.