To me, dad jokes and uncle jokes are not just different because of themes, but for the “type” of punchline.
If a joke is about sex, but it’s a pun or otherwise groan-inducing, to me it’s still a dad joke.
When the punchline itself becomes “hehe sex”, that’s when it crosses into uncle joke territory.