Yes, it would. Eventually. Shrinkdatabase and Shrinkfile do not work immediately.
It will take place, but for the transaction log, the inactive portions have to be located at the end of the log.
You could even use BACKUP LOG Tempdb WITH TRUNCATE_ONLY and then run SHRINKDATABASE.
-SQLBill