Partially. YAML supports the concept of several consecutive "documents." If this is what you are trying to do here, then yes, that’s right - you have two documents (or fragments of a document). To make it more explicit, you must separate them into three dashes, for example:
---
heading:
name: A name
taco: Yes
age: 32
---
heading:
name: Another name
taco: No
age: 27
, ( ), . :
- heading:
name: A name
taco: Yes
age: 32
- heading:
name: Another name
taco: No
age: 27
, YAML /, , . , , YAML, , , .