It's false. Two numbers are relatively prime if they have no common divisors. Of course two (different) primes will surely be relatively prime, but you can easily build two composite relatively prime numbers.
For example, let's build a number using only the primes 2 and 3:
![n = 2^3\cdot 3^2=72](https://img.qammunity.org/2020/formulas/mathematics/college/294xj3xe63zs12sdjhwdcylin3b2jocz82.png)
and another one using only the primes 5 and 7:
![m = 5\cdot 7^3=1715](https://img.qammunity.org/2020/formulas/mathematics/college/uilf6hwbfdoltlnokjl9xztz7rp31p4j9b.png)
these numbers are relatively prime, because they share no common divisors (because no primes appear in both factorizations), but none of them is prime.