Yes, it is possible. You should use this function
qa_post_create('Q', null, $title, $content, $format = '', $categoryid, $tags, $userid, $notify = null, $email = null, $extravalue = null, $name = null);
Before running this function you should assign $title, $content, $categoryid, $tags, and $userid.