Parliament can always dissolve itself and call an election, and it’s an important mechanism for getting rid of the government.
The problem is that the prime minister also has a majority in parliament, and that means he can make parliament dissolve itself when he likes.
This was actually a problem for Johnson. Initially, he didn’t have enough of a majority and it wasn’t clear he could call an election without Corbyn’s support.