If you're invited when you're kicked out, you can come back, but not when you're banned. This is has openly mentioned by the Discord guidelines.