Trucktastic has it right. You're entitled to sick days, and should take them when you need them. If you were calling in once or twice a week and weren't actually sick, it would be a different issue. But that doesn't sound like the case with you. ^_^
But in nay case, you did the right thing. If you're ill, you need to be at home looking after yourself - you deserve it. And if you're sick, it's really hard to do a good job at work, no matter what type of job you have. And finally, if you go in sick, there's the possibility of passing on whatever you have to other people. So you really did do the best thing possible for everyone.
Take care of yourself and I hope you feel better soon. ^_^