Yes you can apply. When you apply to a place you were fired from, you’ll have to answer a question on the application if you were ever fired from there and why. Then you explain why.
I’d say if it’s Dunkin Donuts, you could apply to a different one. Not the same you were fired from