The way in which you found out about the hairstyle would not make wearing it sinful.
However, what could be sinful are your reasons for having such a hairstyle, the scandal it may cause, or the damage it could do to your capability to care of yourself or your family financially.
For example, let’s say a teacher suddenly decides she needs to shave her head into a mohawk. If she discovered this type of hairstyle on, say, a neo-Nazi website that she wants to learn about racism from, then this does not in and of itself mean wearing this hairstyle is sinful.
However, if she wears it because she wants to identify with being a neo-Nazi, and if she wears it despite knowing her school has a strict policy against mohawks and that she will probably get fired, then she is certainly committing sin.
Of course, this is not to say that mohawks and neo-Nazis have anything to do with each other, I’m just trying to make some sort of analogy that stands out and is clear to see.