the php file that you specify in the include function will be "included" where the statement is found, so yes
PHP Code:
if(strlen($something)==0){
    include(
"login.inc.php");

would be fine