Yes, there is a limited risk in using raw eggs in any preparation. As I recall, the FDA has stated that may exist in 1 of 20,000 eggs, but nobody wants to be the person that gets that 1 bad egg.
The citric acid in lemon juice, or acetic acid in vinegar, negates that risk significantly, and salt helps as well.
I've been making homemade mayo as well as other items calling for raw egg yolks such as classic Caesar salad dressing for decades and have never had an issue nor have those who have consumed what I've made.
If you still have a concern you can buy pasteurized eggs or, as jcam222 mentioned, simply pasteurize your eggs.