Yes. God can set anyone free from anxiety. They just have to be obedient to Him. Hes set me free from many problems even anxiety. So yes it can be temporary. Living in sin and disobedience to God is one of the main reason for our problems. Jesus can set you free.
14 Afterward Jesus findeth him in the temple, and said unto him, Behold, thou art made whole: sin no more, lest a worse thing come unto thee.
1 John 1
9 If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness.
1 Peter 5
7 Cast all your anxiety on him because he cares for you