Can you sew a seam all the way around that you can thread elastic through?

I haven't tried this, but am hoping to make some fitted sheets myself, and that is what i was going to try.