Yes, it's an adjective, and the sentence is unfinished. The only time 'sole' is a noun is if it's a species of fish, which is hardly likely in the context!
The sentence might finish '.... if they've been the sole recipient of their parents' affection for their whole lives.' or similar.