Yes, Jesus broke the established traditions and Jewish laws that were added by the counsel of religious leaders after God gave His Law to Moses.  He healed on the Sabbath, which was considered by the religious leaders to be doing work.  But He also broke the tradition of the times by speaking to a Samaritan woman.  Ed Casey gives his explanation of Jesus' possible reasons why.

He may have had empathy for the Samaritan woman because of His own rejection by mankind and by people in His own hometown. He may have been setting an example that shows that God cares for people of all nationalities, races, and backgrounds. He may have been demonstrating that anyone, anywhere is invited to come to Him.