WC drain

Is it ok that a Water Closet drain pipe changes direction from vertical to horizontal exceed 225 degree before goes to soil stack.