Could the South have defeated the North at the Battle of Gettysburg? Why or why not?

Could the South have defeated the North at the Battle of Gettysburg? Why or why not?