Second Continental Congress

The Second Continental Congress was a convention of delegates from the Thirteen Colonies that started meeting in the spring of 1775 in Philadelphia, Pennsylvania. It succeeded the First Continental Congress, which met in Philadelphia between September 5, 1774, and October 26, 1774. The Second Congress managed the Colonial war effort and moved incrementally towards independence. It eventually adopted the Lee Resolution which established the new country on July 2, 1776, and it agreed to the United States Declaration of Independence on July 4, 1776. The Congress acted as the de facto national government of the United States by raising armies, directing strategy, appointing diplomats, and making formal treaties such as the Olive Branch Petition.

Question: was the declaration of independence written at the second continental congress
Answer: yes