I learned to code on a ZX81.
Didn't do me any harm.
Nicholas is right, though - you can learn to code on any computer you feel like, though I'd recommend just something like Blitz BASIC on an A1200 if you want something fun and relatively easy to get into, while still being potent enough to do some cool stuff.