Dear Lesley: Why So Many Vitamins?

My doctor told me to take vitamin D3 and magnesium. I don’t like the thought of having to take several pills every day. Can I take only one multivitamin with both of those things in it?