Of course you should - make friends with whoever you like! I've made friends with colleagues and am still friends with them years after I left.
The only reason I can think of not to is if you or they are loads of drama and you don't want to bothered by it at work.
People are people wherever you meet them.