You can, but you don't want to (unless you don't have an email address). It's trivial to create a Github or Reddit account using a temporary email address or alias.
I created one specifically for Advent of Code a few years back and still using it (and for nothing else).
You can even create a new one each year, or for each day.