Yes, riding a stationary bike can help you lose belly fat as long as you create a calorie deficit by burning more calories than you consume (source: [Livestrong](https://www.livestrong.com/article/394538-can-lose-belly-fat-bike-riding/)). To achieve this, you should aim to ride for at least 30 minutes a day, every day, at a vigorous speed while also eating a calorie-reduced diet. You can also break up your stationary bike workouts into shorter intervals throughout the day (source: [Livestrong](https://www.livestrong.com/article/189913-how-to-ride-a-stationary-bike-to-burn-belly-fat/)).
A stationary bike and a regular bike for the outdoors have almost the same functions.
Stationary bikes have the great advantage of it being indoors that would allow you to still go and exercise with them even if the weather is not good, unlike biking in the outdoors.
You can definitely lose belly fat by cycling a stationary bike, even help transform your body.