Can I sublet a room if I am renting from a parent

If I were to live in a parent’s second home, without paying any rent, can I still sublet a spare bedroom and count that as my own income? Moreover, would the rent a room tax exemption count for me? The more general question is, do I count as a tenant, even if I am not paying rent and the landlord is family.

Thank you