AddDbContext method for DI

So if a context has DbContextOptions or DbContextOptions<TContext> as a constructor argument and the normal pattern for options is used in Startup.cs, then this will "just work"? Or do they need to do something special in Startup and if so what?