Until you have a licence you may not fly other than
(a) with an instructor in the aircraft; or
(b) completely on your own; or of course
(c) as a passenger.
You may not fly "solo" with a passenger. If the school and instructor agree you may, legally, have a passenger in the back during a lesson with an instructor present.
If you've done four hours PIC most schools would have wanted you to pass the Air Law exam by now, in which case you would know this.