If you are driving your car-and you let your friend drive, who doesn´t have a drivers license-is it legal?
At least in most parts of Europe: NO......
The same applies to flying.
You are not an instructor (and even then it wouldn´t be legal unless he is a student enlisted in a flying course, with an ATO)...