PLEASE elaborateYes, but the weight of the sloping roof will cause a tendency to spread outwards, pushing out on the walls.
Two ways to counteract this outward thrust are to make the joints at the roof and walls truly rigid.
This is called a portal frame.
Another way is to place a tie across the two sloping sections of roof.
In my case it need to pull beams right.It is in the plane of the section drawing and pulls the tops to the two wall towards each other.