Yes purlins and girts provide lateral restraint to rafter and column, respectively..
Rafter
· For calculating minor axis compression capacity, the effective length of the rafter is taken as the maximum spacing between the purlins.
· When the rafter’s top flange is in compression the effective length of the rafter is taken as 0.85 x purlin spacing for calculating out of plane capacity.
Column
· For calculating minor axis compression capacity, the effective length of the column is taken as the spacing between the girts.
· When the column’s outside flange is in compression the effective length of the column is taken as 0.85 x girt spacing for calculating out of plane capacity.