It really depends on the door. At my previous house I closed the garage on the charging cable and it was fine. The door at my new place comes down a lot harder and leaves a visible crease in the cable. I knew right away I didn't want to keep doing that.
You can also set where the door stops when it closes. Check the manual for your particular opener, but it's usually easy: long-press one of the buttons, then hold the down arrow until the door sits where you want it.
Have it stop right where the bottom seal just touches the floor. That way it still seals, but it won't squash your charging cable.