Question: is the skin part of the immune system

Answer: Yes, Skin immunity is a property of skin that allows it to resist infections from pathogens. In addition to providing a passive physical barrier against infection, the skin also contains elements of the innate and adaptive immune systems which allows it to actively fight infections. Hence the skin provides defense in depth against will infection.