Of course, you can do that, but you will not earn any reward. You will earn a reward only if your friend is in the same country.