It isn't the same. However, there have been a number of cases where a person was permitted to resign rather than be fired, presumably to preserve any benefits they might have accrued.
It's not the exact same thing, but often an employee is told to resign to avoid being fired which is very close to the same thing. Having an employee resign, instead of being involuntarily terminated can have benefits for both sides.