Yes, you can remarry even if you kept the children and didn't erase their memories. As long as you are divorced.