Answer
Yes.
Work Step by Step
By using the slope formula, the minimum slope of the roof is:
$m=\frac{y_2-y_1}{x_2-x_1}=\frac{3}{12}=\frac{1}{4}.$
The slope of the roof is $\frac{3}{8}$ and $\frac{3}{8}\gt\frac{1}{4}$, thus the roof satisfies the building code.