Yes, you can use a 90-degree elbow in plumbing installations to direct wastewater vertically. But it's essential to add two 45-degree fittings, as well as a brief section of straight pipe, in between the sweep fittings. With this setup, the pipeline will efficiently direct wastewater without creating any hiccups.