Can Delete Records and Write Records be performed in the same transaction?

Can Delete Records and Write Records be performed in the same transaction?

I would like to do a rollback if either Delete or Register/Update fails.

  Discussion posts and replies are publicly visible