Don't think that is possible as DHCP typically spans across multiple switches and the DHCP server doesn't see from which port the request is sent (for sure if the DHCP is running on another switch).
If you need the same IP assigned each time for a specific device like a printer, most people create a reservation in the DHCP server. If you change the device and want the IP to remain the same, you will need to change the reservation.
Another, not so clean, alternative is to create a dedicated subnet for such devices. This solution does not really scale.