yes, why not? it is fully compatible with quran itself: 2:106: https://quran.com/2/106 , http://www.islamawakened.com/quran/2/106/default.htm :
We do not abrogate a verse or cause it to be forgotten except that We
bring forth [one] better than it or similar to it. Do you not know
that Allah is over all things competent?
let's look at original words: http://corpus.quran.com/wordbyword.jsp?chapter=2&verse=106
-> http://corpus.quran.com/qurandictionary.jsp?q=nsx -> http://www.almaany.com/ar/dict/ar-en/%D9%86%D8%B3%D9%8E%D8%AE%D9%92
-> http://corpus.quran.com/qurandictionary.jsp?q=nsy -> http://www.almaany.com/ar/dict/ar-en/%D9%86%D9%8E%D8%B3%D9%90%D9%89%D9%8E
so, one word is about nullifying or replacing, another word is about making to forget.
it is said that anything such thing has some replacement in quran. it is probably 24:2, 5:33 and 4:15-16 in this case:
https://quran.com/24/2 :
The [unmarried] woman or [unmarried] man found guilty of sexual intercourse - lash each one of them with a hundred lashes, and do not be taken by pity for them in the religion of Allah, if you should believe in Allah and the Last Day. And let a group of the believers witness their punishment.
https://quran.com/5/33 :
Indeed, the penalty for those who wage war against Allah and His Messenger and strive upon earth [to cause] corruption is none but that they be killed or crucified or that their hands and feet be cut off from opposite sides or that they be exiled from the land. That is for them a disgrace in this world; and for them in the Hereafter is a great punishment,
https://quran.com/4/14-17 :
(15:) Those who commit unlawful sexual intercourse of your women - bring against them four [witnesses] from among you. And if they testify, confine the guilty women to houses until death takes them or Allah ordains for them [another] way. (16:) And the two who commit it among you, dishonor them both. But if they repent and correct themselves, leave them alone. Indeed, Allah is ever Accepting of repentance and Merciful.