Yes. They can at any time.
As both partners compete as one side playing only one ball:
Either partner may take any allowed action for the side before the stroke is made, such as to mark the spot of the ball and lift, replace, drop and place the ball, no matter which partner’s turn it is to play next for the side.