Not unless you are sure you have completed a database connection to run the script. Even then, you do not need to explicitly close it, because PHP does this automatically after the script completes, if you are not using mysql_pconnect()to connect to your database.
source
share