Yes, I believe Thomas Jefferson was influenced by John Locke because 1. Protection from the government. 2. There is an agreement between the two that the people have the power to rebel if the government does not represent them correctly. Because these ideas correspond with each other it is very likely that Jefferson read Locke and was influenced y him when writing the Declaration of Independence.
There are some similarities between the two in their writing that bring across the same idea. While Locke said, "no one ought to harm another in his life, health, liberty, or possessions" Jefferson tweaked into something more appropriate for the Declaration, transforming it to "life, liberty, and pursuit of happiness."
There are many similarities between John Locke and Thomas Jefferson and I think it is clear that Locke influenced Jefferson.