I have a table T with a primary key id and foreign key f. Is f automatically indexed when it is specified as a foreign key? Do I need explicitly add an index for f ?
No, it is a constraint, not an index.
see Are foreign keys indexed automatically in SQL Server?