Yes, Discord sometimes bans IP addresses. If you want to unban yourself, you will need a different IP address to sort this problem. You can get a new IP address by using a different device, network or a VPN.