Yes. Just keep in mind that some investments might take longer to withdraw when you need cash.
It's up to you. Many people use their emergency funds for large, unexpected bills like car repairs, vet bills or home improvements, but you can access your funds whenever you see fit.