Yes, but the warning line must be erected around all sides of roof work areas and at least 6 feet from the roof edge. 1926.502(f).