not recommended. Diesel engines are mainly iron block/iron head (talking about big rigs such as Detroit Diesel, etc. and not VeeDoubleUs, etc.) and they call for different service requirements (per operational characteristics, metal compatibility, etc.).
If your gasoline engine runs on glycol based coolant, check your manufacturer's recommendation and stick to that. Otherwise, you'll get into trouble.
Q.