It depends on what zone you are in. Ask your local building inspector, or google your state building code, which hopefully will be the same as your local code.
Lumber yard staff will probably know...