Hi Lulu, yes you can and here is how to do it.
Hi Lulu, here are some ideas and hints for growing and care of an avocado. Good luck Growing Avocados as Houseplants - The Spruce
Nov 26, 2018 - To sprout an avocado seed, insert three toothpicks into the seed and suspend it with the end down over a glass of water. Water should cover about an inch of the seed. Keep it in a warm place, but not in direct sunlight.
Here is a tutorial for that https://familyfocusblog.com/grow-avocado-from-seed/