Correct option is made.
When we are talking about completed actions we can use this form having + done
For example
- He accepted having stolen the money.
- They now regret having gotten married.
But it is also not necessary to use above form. Instead one can use sentences like
- He accepted stealing money.
- They now regret getting married.