Does the config Lemmy domain need to match the actual accessed domain?

For instance, can I use the domain example.com to produce users like @dave@example.com but still access the UI using lemmy.example.com?