Create users from website

A bit of a weird question but is there anyway you can use a html or wordpress website to allow users to create their own account. Like Hotmail and Yahoo?

You really don’t want to do this if it is open to the public.

However, you can do this programmatically with the API.