Create custom field groups

Hi! Is it possible to create a custom field group via the api and then add custom fields to it?