referral

if i obtain referred from pcp to another provider for 6 visits then before that 6 months is up my pcp changes.  Is that referral still valid?