If you have a passport from Algeria, then yes, you can apply online for your Turkish Visa.
Your e- visa  will be valid for a total period of 180 days. Your stay cannot exceed 30 days

Number of Entries: Single-Entry

We deliver the visas within 24 hours and you can apply here:
https://turkishvisa.com/


Please note that Algerian citizens have to agree to these requirements in order to apply for the e-visa:
*I hold travel documents in accordance with my travel purposes, (Return ticket, hotel reservation, adequate financial means, business contact if traveling for business).
*I have adequate financial means (at least U.S. $50 for each day in Turkey).
*I have a round-trip ticket to Istanbul Ataturk Airport with Turkish Airlines, Pegasus Airlines or Egypt Air.
*I am traveling for the purpose of tourism or business.
*My age is below 18 or over 35;
*I hold a valid and legitimate passport, which will allow me to return to my country of residence and will be valid for at least 6 months beyond my departure from Turkey.