Yup, it's as simple as this with PHP and MySQL that I'm using.
https://www.w3schools.com/php/php_mysql_insert.asp