In D&C 98, the Lord teaches that he has made us free to act for ourselves.
Section 98:4-8, Doctrine and Covenants, The Church of Jesus Christ of Latter-day Saints, accessed May 10, 2024
4 And now, verily I say unto you concerning the laws of the land, it is my will that my people should observe to do all things whatsoever I command them.
5 And that law of the land which is constitutional, supporting that principle of freedom in maintaining rights and privileges, belongs to all mankind, and is justifiable before me.
6 Therefore, I, the Lord, justify you, and your brethren of my church, in befriending that law which is the constitutional law of the land;
7 And as pertaining to law of man, whatsoever is more or less than this, cometh of evil.
8 I, the Lord God, make you free, therefore ye are free indeed; and the law also maketh you free.