Upvote:2
Yes, you can do this. Just think of it as two one-way flights.
However, due to the peculiarities of airline ticketing these two flights could well work out more expensive then if you fly all three legs of the journey.
Don't be tempted to book and not show up for the second leg. If you miss a flight the airline will cancel all subsequent legs.