Hello, Nicolas—and welcome to English Forums. These are correct and the comma is unrelated to 'that'. The comma is placed before the coordinating conjunction (here, 'and') in compound sentences.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.