Help with Comment IDs

I really like this video, but my question is this way:
let’s use MongoDB and this element in BSON as an example:

videos:
[
{
idVideo: 1,
comments:
[
{id: 1, content: “a”},
{id: 2, content: “b”}
]
},
{
idVideo: 2,
comments:
[
{id: 1, content: “a”},
{id: 2, content: “b”}
]
}
]

would it be correct to use this way (as you can see, the videos contain unique ids, but the comments have unique ids only within that video)?