Let $q$ and $p$ be coprime. And without loss of generality, as $p$ and $q$ are interchangeable, let $p>q$, $p=q+d$.
If $p$ and $q$ are coprime, the fraction cannot be simplified. Therefore, we can rewrite $p/q$ as $(q+d)/q$, and we obtain $1+d/q$. As the fraction for $p/q$ cannot be simplified, $d/q$ can also not be simplified, therefore $d$ is also prime to $q$. [We can do same arguement for $p$ too]. Is this correct?
Yes, if $d$ and $q$ had a common factor, it would also be a factor of $d+q=p$. This is the heart of the Euclidean algorithm for greatest common divisor.