Do errors occur when DNA is replicated?

Yes errors can occur especially if splicing is involved. Mutations in DNA also happen during cell division (both meiosis and mitosis).