Yes, a 1 inch gap between the back of a toilet and the wall is considered normal according to building codes.