I think you can, since you can execute SQL expression directly using the NH session. You'd have to inject an
ISessionLocator into your migrations class to access the session.

Migrations in Orchard are typically only used to define / alter content types and database tables. Settings themselves (assuming you are referring to site settings) are stored as content in the database and is typically not done through migrations.