sure, but the returns quickly diminish with relatedness. A child is worth two nephews/nieces, 8 first cousins once removed, or 32 second cousins once removed.
That's assuming none of your nephews or first cousins never reproduce with each other down the line. Also consider it's not exactly your dna you are trying to pass on but your families. Then you are someone's child and nephew etc and those people want there genes passed on just as much as you do. So by raising others in the local community you help pass on your father's or uncle's DNA.