What type of machine is the engine installed in.
In short - yes. I use diesel oil in my ATV - and many motorcycle owners do the same. It’s actually BETTER as it does not contain the detergents of modern oil for gas engines - which damage wet clutches.
In an older auto - not a big deal. Think of those detergents like ethane in fuel. On modern autos, it helps and is actually needed. They serve a purpose and prolong engine life. In older vehicles not designed for that tech - it’s not helping.