Possible, but I think unlikely. These days, my diet mainly consists of Soylent and Vite Ramen, which together provide me with 105% of my DRV of Magnesium in the form of Magnesium Phosphate and Magnesium Gluconate, respectively.
If you're getting 105% of your magnesium from these items, then you're also getting 105% of your Vitamin D before taking any additional Vitamin D supplements/sun exposure.
Adding the 5000IU of Vitamin D3 would be increasing your intake to 5840IU (730% of DRV) - assuming you didn't ingest anything else fortified with Vitamin D.