Not necessarily:
Psalm 66:18 AV:
18 If I regard iniquity in my heart, the Lord will not hear me:
Matthew 7:21-23 AV:
21 Not every one that saith unto me, Lord, Lord, shall enter into the kingdom of heaven;
but he that doeth the will of my Father which is in heaven.
22 Many will say to me in that day,
Lord, Lord, have we not prophesied in thy name? and in thy name have cast out devils? and in thy name done many wonderful works?23 And then will I profess unto them,
I never knew you: depart from me, ye that work iniquity
Be it far from thee, Lord: this shall not be unto thee.23 But he turned, and said unto Peter,
Get thee behind me, Satan: thou art an offence unto me: for thou savourest not the things that be of God, but those that be of men.
So, when your petitions are answered you don't know if it was God or Satan who answered?