Yes. Absolutely. The relationship between Freemasonry and the Knights Templar goes waaaaaaay back.
Freemasons built many of the Knights Templar commanderies, knights halls, churches, abbeys, preceptories and castles. In France, the Knights Templar were major financial backers for many major building projects, including the great cathedral Notre Dame de Paris, which was constructed under the direction and participation of operative Freemasons. Wherever Knights Templars built or funded the building of great buildings, Freemasons were heavily involved; from the Middle East, through France, Italy Portugal, Spain, England, Scotland France and other European countries.