You are very correct, but let me say that, setting a profit limit in gambling does not sound ideal or feasible to me honestly, this is because, in gambling, the outcome of games is totally unpredictable, so this makes it absolutely impossible to know which bet will turn out to be the winning bet and one that will turn out to be the losing one, setting a profit limit will only make the gambler spend more time than necessary playing just to see if he or she could or would reach the profit target he or she have set for him or herself. This can not only lead to the gambler getting addicted easily to gambling, in the days that luck is not on the gamblers side, he or she will lose more money, and at the end of the day, he may not even reach the profit limit he or she set for him or herself.
Instead of setting a profit limit, set loss limit instead, so that while playing, if you hit your lose limit, you can easily leave gambling for that day and try again the next day.
It is feasible, however, it isn't very much ideal given the situation you already provided, bets and plays aren't a sure thing. There is no guaranteed win, therefore if you already reached your limit amount to spend, you can no longer bet and play more which is really saddening to the gambler's end because of course, they would want to play more because of the fun, entertainment, and profit on the side. But it is possible to set a limit and stand by it if you are just disciplined enough. Then the moment you win, decide whether you want to cash out or you want to continue to gamble and check if you have a profit, if you are in it for profit or just a breakeven.