I have population size of $2000$. I used Cochran's formula to determine sample size which is $$\text{Sample Size} = \frac{n}{1 + (n/\text{population})}$$ in which $n$ is equal to $Z * Z [P (1-P)/(D*D)]$ (using a 95% confidence and $5\%$ margin of error and $p = 0.5$) which gives me sample size $323$.
My question: is $323$ the minimum sample size? Can I take larger sample?
If I have population size $800$ and using the same formula again I get sample size $18$ (using $10\%$ margin of error and $95\%$ confidence, $p=95\%$) then isn't the sample size too small to carry the hypothesis test?