It is possible, but it really depends on what your script was doing and how often - blacklisting is not something that happens for no reason. It’s also more likely to be something that was restricted by API key rather than cutting off a whole host.
Are you able to ping or traceroute from your server to api.twitter.com? Could there be any other network issue here?