Earlier quoted context omitted.
[5] forms (vitamers) of vitamin D exist (see table). The two major forms are vitamin D2 or ergocalciferol, and vitamin D3 or cholecalciferol, vitamin D without a subscript refers to either D2 or D3 or both. These are known collectively as calciferol....Vitamin D3 (cholecalciferol) is produced by ultraviolet irradiation (UV) of its precursor 7-dehydrocholesterol. This molecule occurs naturally in the skin of animals a…
It looks to me like the supplement is D3 and the one you get from UV exposure is D3, so no, spending time outdoors doesn't give you any better Vitamin D than the supplement. Of course, exercise has other benefits.
Leaving aside any other ill-understood benefits of sun exposure.