Yes and no. The Earl was placed in command by the king's war council or the king himself. So the Earl's standing is temporarily above Elena's. So as long as his orders doesn't place her in undue danger, she would need to follow his orders.
There is a major caveat though. If his actions lead to...