Presumably yes, but it is a bad idea. From the !emacs manual: "Unless you know what you are doing, do _not_ advise a primitive. Some primitives are used by the advice mechanism; advising them could cause an infinite recursion. Also, many primitives are called directly from C code. Calls to the primitive from Lisp code will take note of the advice, but calls from C code will ignore the advice."