You can, but having done it, I don’t recommend it. If you must try to do it in small batches, say 500 people or less.
You read about it here
https://www.wikitree.com/wiki/Help:GEDCOM