Will gNB allocate UL resource if UE link quality poor (out of range)?

Will gNB continuously allocate UL resource to the UE for uplink
even when an UE link quality (very) poor (ex: UE in the basement, or UE goes far, out of range of the gNB, and not handover to any gNB)?
Is there any timer or mechanism for gNB to detect this problem?