Yes the actual principle of the Pythagorean theorum existed before Pythagoras "invented it of course.
What I think you meant to say was, 'Did anyone know about it before Pythagoras.' I believe that the answer is yes. Many historians think that Pythagoras stole the idea from the ancient Egyptians, and took the credit for it.