Whilst not condoning it, yes you can. As long as you receive no valuable consideration you can do it.
There is an FI at Sywell for example who is employed as a receptionist who happens to teach most of the day as he is unable to get a JAA CPL. Perfectly legal unless he is required to fly.