Yes, the sides of the angles are two pairs are of opposite rays.
Practice makes perfect
Vertical angles are two angles whose sides are opposite rays. This means that the rays point in opposite directions forming straight lines. Examining the figure, we can see that this is the case.
Since sides of ∠6 and ∠8 are opposite rays, they are vertical angles.