Yes, but only the premiums for the months that you were actively working as self-employed. For example, if you worked as self-employed the months of February, March, and April, and then July, September, and November, then you can deduct six months of Medicare, Medicare Supplement, and Medicare Part D premiums.