A try block will fail catch the first exception that is generated. Therefore it is quite safe to place all 3 statements in the try section.
You can also use multiple catch blocks so that different exception types can be handled differently such as:
try {
$pds= $pdo->prepare("SELECT * FROM userinfo WHERE username=:username AND password=:password");
$pds->execute(array(':username' => $username, ':password' => $password));
$row = $pds->fetch(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo 'A pdo exception happened';
} catch (Exception $e) {
echo 'A different exception happened';
}
This helps ensure you can for example clean up after the issue.