Dear Friend,
You are advised to follow the rules or standing order of your establishment, if any. If the appointment condition of the trainee is to pay only a stipend, then you are free to realize the house rent from his stipend. In the absence of clarity, it is always good to take written authorization from the trainee for deduction to avoid future complications.