no fuel to carb on crank

Does it only happen if the engine has come up to operating temp then shut down (Fuel line too close to an exhost pipe could vapor lock)