That's true. In the 17th century, courtesans played female roles, so the shogunate prohibited their appearances because they encouraged immorality. This is why women characters are impersonated by actors called ''oyama''