No, as we don’t know what the 4th one is.
The pattern doesn’t loop around itself, only the codes do.
Meaning the codes can be anything, and our lack of knowing the amount of actions we can take, sort of helps towards this.
If Black was always followed up by White, the entire sequence would be impossible.
However, we don’t know what would follow up Black because I don’t want to waste actions to figure it out.
E.G:
If Red, Blue, ???, ??? and ??? turns out to be Red, Blue, White, it would go to Red, Blue, White, Red, Blue.
Thus there is no White at the end.