can && as well as || be used in one compund conditional statement

im trying to make sure the score increases if you have both or either one of the two input buttons down

if(Input.GetButtonPressed(“buttonOne”) || Input.GetButtonPressed(“buttonTwo”))

Actually || means “and or”, if you want to do an exclusiv or you can use the “^” statement.