Is a comma required in this sentence?

"James ran to the grocery store, and David walked to the library."

Yes. You need a comma between two independent clauses.