Yes, you can do so using the Twitter API; that’s the approved way to do so.