Yes, Finasteride and Propecia are essentially the same when it comes to treating hair loss. Both contain the same active ingredient, 1mg of finasteride, and work by inhibiting the conversion of testosterone to DHT, a hormone that contributes to male pattern hair loss.
Unless you have a specific preference for the brand name or have concerns about the inactive ingredients, finasteride is the more cost-effective and equally effective choice for treating hair loss.