You can't paint drywall until it's completely dry. It may be difficult to match the existing color when painting only a small stained area affected by water, so you'll have make sure all of your walls are covered in at least one coat before moving on or else risk having an uneven job that will show every time someone walks across it.