Yes, Twitter mentions in its privacy policy that it receives information about your IP address, the device you're using, and other personal information when you use Twitter. If you want to learn how you can change your IP address so Twitter can't see it, you can read this article.