Question 9 - Circuit from question 6

In question 9 can i use the circuit enc_rec_4 from question 6 ?
also, can i use xor gate ?