Allah never Rejects Our Duaas | He Answered Them In Different Ways
There are three types of answer from Allah.
Yes = Means right away.
Yes but be patient = To teach us patience.
I have a better one = He knows what is best for you.
So yes, He can and will answer your prayers as long as it have good intentions and positive results. But remember, sometimes your prayer won’t be answered because He has something far more better.
And Allah’s knows best.
It depends on what the wish is about actually. Normally people do ask for such things wish look beneficial for them but it is only Allah who knows its true nature and the later outcomes . Sometimes these things can lead to bad outcomes and a person later may suffer , however if it is truely beneficial there are chances he will accept , but for that patience is needed. On the otherhand there are surly valid reasons for the non acceptance of a dua which are know to Allah . It is said that those wishes that are not granted will be given a compensation on the day of judgement.