No, do not use an airlock. It’s important that your yeast starter gets enough air. If you are worried about debris, bugs, or other floating contaminants getting into the solution, you can cover the yeast starter with some sanitized tin foil. If there are bugs flying around, consider purchasing a foam stopper. You can boil water in a flask while the stopper is in it to sanitize or wash the stopper in StarSan.