RT-PCR test can only tell if a person is currently infected, not his or her contagiousness
"PCR tests for the coronavirus's nucleic acid can't distinguish between dead and viable virus particles, potentially giving the wrong impression that someone who tests positive for the virus remains infectious."
Source:
Coronavirus patients who seem to catch COVID-19 twice aren't infectious 2nd time