Yes, you can. Beds can be crafted at the sawmill. If you have set up a sawmill, you will need five silks and 15 wood to craft a bed. The bed will serve as a respawn point for you. Every time you die, wherever you place it, you will be reborn in the place where your bed is.