No, the proponents of the utilitarian moral framework try to justify illegal actions retrospectively if the outcome was good and refuse to take responsibility if it is bad.
Ethics should guide your decisions beforehand and require you to take responsibility for all possible outcomes.