Is it possible to create an xml file using XML DOM with nesting tags of the same name or will it throw a HIERARCHY_REQUEST_ERR?

For example:

<person>
<name>John</name>
<person>
<name>Bob</name>
</person>
<person>