To be more clear, here is a fragment of a game:
[FEN "4k3/R7/6r1/3KP3/8/8/8/8 w - - 0 1"] 1. Ra2 Rg5 2. Ra7 Rg6 3. Ra2 Rg5 4. Ra7 Rg6 5. Ra4 Rg5 6. Ra2
From the FIDE Laws of Chess:
The game may be drawn if an identical position is about to appear or has appeared on the chessboard at least three times (see Article 9.2).
The position of the pieces occurred three times. However the board position only occurred twice. In the first two occurrences, it was white to move. In the final position, it is black's turn. Can I claim a draw by threefold repetition in this situation?