Unless your side won, the war ending doesn't have any affect on whether it's safe for you to return or not.
In the case of Syria, the Caesar sanctions will probably cripple Syria's reconstruction. So there probably won't be much to return to for the foreseeable future.