Using a 2nd gen iPod touch is only useful if you wish to download old versions of Xcode and you only want to learn 2-year old iOS app development.
If you want to learn modern iOS development then you need an iOS device that runs iOS 6.0 or later. This requires at least a 4th gen iPod touch, iPad 2, or iPhone 3GS.