Yes that will drop the database in most cases. The one situation it will not is when there are active processes in the database. In this case you will get an error.
If this occurs, you can run this brutal command:
ALTER DATABASE ToBeDeleted SET SINGLE_USER WITH ROLLBACK IMMEDIATE
Now DROP DATABASE should succeed.