Is it okay to take vitamins instead of getting your nutrition through food?

I learned these last few months that I am deficient in at least 3 different vitamins and buying vitamins seems easier than cooking all this food I don’t usually eat just so I can be nutritious.

Is it okay to take vitamins instead of getting your nutrition through food?
Post Opinion