what i think it will depend upon the code. that we are using for the insertion of a node in BST. if you have a condition where you compare values of root with >= or <= operator with the child you can insert the node. but if u have < or > operators u cannot insert it as the value wont be found.
in both cases time will be O(n) ,as you have to compare the value with the previous one n times in duplicate case.