Yes, you can. Forces are vector quantities. It depends on the direction of your motion. The gravitational force only acts on the vertical direction component. However, you would still have to incorporate the forces both in the horizontal and vertical motion to determine the net force.