It affects all valve
The left sided valves (aortic and mitral) are commonly the most fequent infected.
This can result from dental work, infections elsewhere.
The right sided valves can get infected too with the tricuspid eing more frequently involved. Ths is seen in i've drug users frequently.