Preserve static ip of stateful managed instance group manager vms (google cloud)

was going through Terraform Registry .
It has a way to preserve the disks under preserve state. Can we have similar facility to preserve IP address. so that if vm gets replaced, they should have same IPs.