If it's just a minor, superficial cut, then probably yes.
If a larger gash or bleeding, see a doctor to get it evaluated and stitched. All of this also depends on the dog not having rabies
. If you don't know the dog, you need to get evaluated by a doctor and have the dog examined.