If we enable compression on database backups (because the database backup size is huge) but don't enable it on differential which are relatively small in size, will a restore work? Because the full backup is compressed but the differential isn't compressed.
Yes the restore will work just fine. Every edition of SQL Server 2008 and later can restore a compressed backup.
Refer : Backup Compression (SQL Server) for more details.