Question: is be careful what you wish for an idiom?
Answer: If you get things that you desire, there may be unforeseen and unpleasant consequences. ('Be careful what you wish for, lest it come true. ' and 'Be careful what you wish for; you may receive it. ' are also used.)