A pilot, whether acting as PIC or not, may log PIC time anytime in which he/she is sole manipulator of the controls of an aircraft for which he/she is rated (FAR 61.51). This is true regardless of weather conditions, whether VFR or IFR, simulated or actual.