Yes, because:
push 1 ; 6A 01 (2 bytes)
pop rdi ; 5F (1 byte)
is longer than a simple: mov edi, eax ; 89 C7 (2 bytes)