It will not harm your engine but it will not be cost effective as diesel engine is high compression engine than that of petrol engine therefore diesel engine generates more heat also friction is more and hence metallurgy is entirely different. Due to the reason diesel engine oil has more additives to counter more heat, more sulphur, more moisture etc. Please remain very careful when selecting engine oil for your precious vehicle. Viscosity grade(SAE) is very important according to your vehicle age and atmospheric conditions(temperature).
Regards,
Zia