In principle it is not possible.
It is only valid where the change of name and the acquisition of the nobility is authorised by the sovereign (for example by Royal License to take the name and arms, with an appropriate difference to the arms, in UK, or, historically until 1918, Wappens-, Namens- und Adelsübertragung in Germany and Austria).