The answer is "no", since these verses are taken out of context. Job 5:17 starts with "Behold, how happy is the man whom God reproves,..." The friend was generalizing about the benefits of a man whom God disciplines, since he will be a better man for it.
I could say to you now that some day you will get married and have children, and your children will treat you the way you treated your parents. If that does end up happening, would that make me a prophet? Not likely, as I was just passing on the ironies of life.