If you're definitely over them and are fine being friends (ie it didn't end badly) then sure, you can do what you want.
If it ended badly or you think you may struggle to get over them, I would recommend blocking
I'm not fine being friends with her, I let her know that. I'm definitely not over her either. I don't know about her.
I unfriended her as soon as I got home after she dropped the bombshell. She then deleted a picture of me.
It didn't end badly though, well not as bad as my previous ex - she broke up with me and blocked me after 3-4 days. This ex hasn't and it's been 13 days of No Contact.
If you're not over her it will be easier in the long run if you block her. Then when you feel better you might find you wanna be friends, or not
Well not if I want to try and get her back ...
I don't think anyone would want to be friends with someone who blocked them out of their life lol ... I know I wouldn't, I would be "wtf you thinking?"