Yes. A DOLS (Deprivation of Liberty, Safeguarding) Order is par for the course for someone in residential care. Otherwise, your wife could just say that she was leaving, and the Care Home would have no legal right to prevent her, whether it was safe to allow her out to wander off alone or not. There should be no problem taking her out, as long as you let the staff know.