No. Social Security benefits and Medicare are not affected whether you are being claimed as a dependent or not.