That depends entirely on the configuration of your FTP server.
If you configure your FTP server (e.g. Proftpd) to use a users database stored in MySQL, for instance, it should be as easy as inserting a row.
If it relies on system accounts, that could be trickier - you'd need to create a system account.
Mark