Is there any method (function) in drupal which gets called after nodes being created.
You are looking for hook_node_insert() 

This is from API page:


  Respond to creation of a new node.
  
  This hook is invoked from node_save() after the database query that
  will insert the node into the node table is scheduled for execution,
  after the type-specific hook_insert() is invoked, and after
  field_attach_insert() is called.


function MyModule_node_insert($node) {

  if($node-&gt;type == 'article') {
    //your code here
    custom_func();
  }
}

function custom_func() {
  //your code goes here
}