Of course, when the maximum number of coins is reached, then the mining ends, because the expenditure on it will outweigh its profit. Mining is already not a very profitable business for today, until you pay back the equipment will take a long time, and the market changes quickly. For me, mining is very risky!